import React from "react";
import ReactDOM from "react-dom/client";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import LogIn from "./LogIn";
import Register from "./Register";
import FileExplorer from "./FileExplorer";
import TextEditor from "./TextEditor";
import ChangePassword from "./ChangePassword";
import CloudFilesList from "./CloudFilesList";

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
  <React.StrictMode> 
    <BrowserRouter>
    <Routes>
      <Route path="/" element={<LogIn />} />
      <Route path="/register" element={<Register />} />
      <Route path="/files" element={<FileExplorer />} />
      <Route path="/editor" element={<TextEditor />} />
      <Route path="/change-password" element={<ChangePassword />} />
      <Route path="/cloud-files-list" element={<CloudFilesList />} />
    </Routes>
    </BrowserRouter>
  </React.StrictMode>,
);
